
package cn.com.gof.behavior.Mediator;

import java.beans.DefaultPersistenceDelegate;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>Title: President</p>  
 * <p>Description: </p>  
 * @author WangJun
 * @date 2018年9月10日 上午10:24:23
 */
public class President implements Mediator{
	private Map<String, Depatement> deps = new HashMap<String, Depatement>();

	@Override
	public void register(String depName, Depatement dep) {
		deps.put(depName, dep);
	}

	@Override
	public void command(String depName) {
		deps.get(depName).selfAction();
	}

}
